Ext.define('Admin.store.process.ProcessGridStore', {
    extend: 'Ext.data.Store',
    alias: 'store.process-definition-gridstore',
    model: 'Admin.model.process.ProcessGridModel',

    //pageSize: 20,

    proxy: {
        type: 'ajax',
        url: 'definition/list',
        //actionMethods:{read : 'POST'},  
        reader: new Ext.data.JsonReader({
            type: 'json',
            rootProperty: 'content',
            totalProperty: 'totalElements'
        }),
        simpleSortMode: true
            //,simpleGroupMode: true
            //,groupParam: 'sort'
            //,groupDirectionParam: 'dir' 
    },

    remoteSort: true,
    autoLoad: true,

    sorters: [{
        property: 'id',
        direction: 'desc'
    }],

    listeners: {
        //beforLoad
    }

});